<template>
  <div>
    <p>{{ formatNumber(123456) }}</p>
    <p>{{ formatNumber(10051) }}</p>
  </div>
</template>
 
<script setup>
const formatNumber = (num) => {
  if (num > 10000) {
    return (num / 10000).toFixed(2) + ' 万';
  }
  return num;
};
</script>



